// 员工返回的数据格式
export interface EmployeeResponse {
    dept_id?: number // 部门ID
    email?: unknown
    id?: number
    locattionOfWork?: string // 办公地点
    mobile?: number
    shop_id?: string // 门店ID
    status?: string
    timeOfEntry?: string // 入职时间
    typeOfEmployment?: string // 聘用形式
    userid?: string
    username?: string
    workNumber?: string // 工号
    basic_salary?: number // 基本工资
    confirm_date?: string // 转正日期
    teacher_id?: string // 带教老师ID
    teacher_name?: string // 带教老师姓名
    is_cleaner?: 0 | 1 // 是否清洁工，0-不是，1-是
    id_card?:string
    bank_account?:string
    bank_name?:string
    position?:string
    leave_date?:any

}

// 将办公地点翻译为中文
export function translateLocationOfWork(locationOfWork: string) {
    switch (locationOfWork) {
        case "1":
            return "办公室"
        case "2":
            return "门店"
        default:
            return "无"
    }
}

// 将聘用形式翻译为中文
export function translateTypeOfEmployment(typeOfEmployment: string) {
    switch (typeOfEmployment) {
        case "1":
            return "全职"
        case "2":
            return "兼职"
        default:
            return "无"
    }
}

// 将是否清洁工翻译为中文
export function translateIsCleaner(isCleaner: number) {
    switch (isCleaner) {
        case 0:
            return "不是"
        case 1:
            return "是"
    }
}
